<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt'%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ page
	import="org.springframework.security.core.AuthenticationException"%>
<%@ page import="java.net.URL"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Home</title>

<link rel="stylesheet" type="text/css"
	href=${pageContext.servletContext.contextPath}/static/css/start-style.css />

<title>Wypożyczalnia samochodów</title>
</head>
<body>
	<div id="wrapper">
		<div id="bg">
			<div id="header"></div>
			<div id="page">
				<jsp:include page="header.jsp" />

				<!--  content -->
				<div id="content">

					<div id="center">

						<div id="listasamochodow2">
							<p>
							<h1>Moje wypozyczenia</h1>
							</p>

							<c:forEach items="${hires}" var="hire">

								<table>
									<tr>
										<th>Termin</th>
										<td>${hire.startDate}  ${hire.endDate}</td>
										<th>Numer Rejestracyjny</th>
										<td>${hire.car.registration_number}</td>
										<th>Marka</th>
										<td>${hire.car.brand}</td>
										<th>Model</th>
										<td>${hire.car.model}</td>
										<form:form class="cmxform" commandName="rentForm"
											id="rentForm" method="post"
											action="../ownHires/details.do">
											<input type="hidden" path="id" id="id" name="id"
												value="${hire.idHire}" />
											<input type="submit" value="Details" name="Details" />
										</form:form>
										
									</tr>
								</table>
							</c:forEach>

						</div>
						<div id="main_content"></div>
					</div>

					<div id="right">
						<div id="sidebar">
							<h3>Categories</h3>
							<ul class="vmenu">
								<li><a href="#" shape="rect">Category 1</a></li>
								<li><a href="#" shape="rect">Category 2</a></li>
								<li><a href="#" shape="rect">Category 3</a></li>
								<li><a href="#" shape="rect">Category 4</a></li>
								<li><a href="#" shape="rect">Category 5</a></li>
							</ul>
							<h3 style="margin-top: 40px">News</h3>
							<p></p>
							<div style="font-weight: bold; margin-top: 20px">Call us :
								00-123-456-789</div>
							<div style="text-align: center; margin: 20px 0">
								<img src="../static/css/images/phone-1_64.jpg" />
							</div>
						</div>
					</div>
					<div class="clear" style="height: 40px"></div>
				</div>
				<!-- end content -->
			</div>
			<!-- end container -->
		</div>
		<div id="footerWrapper">
			<div id="footer">
				<p style="padding-top: 10px;">
					<a href="#" shape="rect">Home</a> | <a href="#" shape="rect">Products</a>
					| <a href="#" shape="rect">Services</a> | <a href="#" shape="rect">News</a>
					| <a href="#" shape="rect">About</a>
				</p>
				<p>

					<a href="http://www.dotemplate.com" shape="rect">Templates</a>
					maker
				</p>
			</div>
		</div>
	</div>
</body>
</html>
